<?php

namespace mpend\modules\demand\controllers;

use Yii;
use mpend\components\Controller;
use mpend\models\searchs\DemandSearch;

/**
 * 需求列表相关接口
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class ListController extends Controller {

    /**
     * 查询列表
     * @return mixed
     */
    public function actionIndex() {
        $model = new DemandSearch();
        $model->load(Yii::$app->request->getQueryParams(), '');
        return $model->search();
    }

}
